<?php
$a=["张三丰","里斯","阿kit","papi酱","jackson"];
outFormat(35,$a);
function outFormat(int $width, ?array $a):void {
    if (is_null($a))return;
    foreach ($a as $item){
        $name=str_replace(' ','',$item);
        $right=bin2hex($name);
        $right=strtoupper($right);
        $right=chunk_split($right,2,'_');
        $right=substr($right,0,-1);
        $rightLength=strlen($right);
        $nameLength=strlen(iconv('utf-8','GBK',$name) );
        $spaceLength=$width-$nameLength-$rightLength;
        echo $name,str_repeat(' ',$spaceLength),$right,"\n";}}
/* 输出内容如下：
张三丰   E5_BC_A0_E4_B8_89_E4_B8_B0
里斯              E9_87_8C_E6_96_AF
阿kit             E9_98_BF_6B_69_74
papi酱         70_61_70_69_E9_85_B1
Jackson        4A_61_63_6B_73_6F_6E
*/
